export default {
  namespaced: true,
  state: {},
  getters: {},
  mutations: {},
  actions: {
    image(_, data) {
      return uni.request({
        url: '/unify/source/image',
        data
      })
    },
    list(_, data) {
      return uni.request({
        url: '/unify/source/index',
        data
      })
    },
    form(_, data = {}) {
      return uni.request({
        url: '/unify/source/form',
        data
      })
    },
    save(_, filePath) {
      return uni.uploadFile({
        url: '/unify/source/save',
        filePath,
        name: "file"
      })
    },
    update(_, data) {
      return uni.request({
        url: '/unify/source/update',
        data
      })
    },
    read(_, data) {
      return uni.request({
        url: '/unify/source/read',
        data
      })
    },
    delete(_, data) {
      return uni.request({
        url: '/unify/source/delete',
        data
      })
    },

  }
}